package com.example.hospitallogin.modules.login.service;

import com.example.hospitallogin.modules.login.dao.entity.HospitalMessageEntity;
import com.example.hospitallogin.modules.login.dao.mapper.HospitalMessageMapper;
import com.example.hospitallogin.modules.register.dao.entity.HospitalRegisterEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.entity.Example;

import java.util.List;

/**
 * @author qiancheng@cqxyy.net
 * @date 2022/9/19
 */
@Repository
public class HospitalManegerService {
    @Autowired
    private HospitalMessageMapper hospitalMessageMapper;

    public void insertSelective(HospitalMessageEntity hospitalMessageEntity){
        hospitalMessageMapper.insertSelective(hospitalMessageEntity);
    }

    public List<HospitalMessageEntity> selectByExample(Example example){
        return hospitalMessageMapper.selectByExample(example);
    }
}
